package shuogg.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * http://localhost:8080/springMVC_testAnno/mycontroller/simpleshow.do
 * */


@Controller
@RequestMapping("/mycontroller")
public class MyController {

    @RequestMapping("/simpleshow")
    public String simpleShow(Model model) {
        model.addAttribute("hello", "成功了, 高兴高兴");
        return "index";
    }
}
